$OpenBSD: patch-CMakeLists_txt,v 1.6 2015/11/23 20:34:07 zhuk Exp $
--- CMakeLists.txt.orig	Mon Oct 26 08:56:34 2015
+++ CMakeLists.txt	Tue Nov  3 01:10:55 2015
@@ -451,7 +451,7 @@ if(UNIX)
     CHECK_INCLUDE_FILE(pthread.h HAVE_LIBPTHREAD)
     if(ANDROID)
       set(OPENCV_LINKER_LIBS ${OPENCV_LINKER_LIBS} dl m log)
-    elseif(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD|NetBSD|DragonFly")
+    elseif(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD|NetBSD|DragonFly|OpenBSD")
       set(OPENCV_LINKER_LIBS ${OPENCV_LINKER_LIBS} m pthread)
     elseif(${CMAKE_SYSTEM_NAME} MATCHES "QNX")
       set(OPENCV_LINKER_LIBS ${OPENCV_LINKER_LIBS} m)
